
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Milvus API 测试报告</title>
    <style>
        body { font-family: Arial, sans-serif; margin: 20px; background-color: #f5f5f5; }
        .container { max-width: 1200px; margin: 0 auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .header { text-align: center; margin-bottom: 30px; }
        .header h1 { color: #333; margin-bottom: 10px; }
        .header .timestamp { color: #666; font-size: 14px; }
        .section { margin-bottom: 30px; }
        .section h2 { color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 10px; }
        .metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; }
        .metric-card { background: #f8f9fa; padding: 15px; border-radius: 6px; border-left: 4px solid #3498db; }
        .metric-value { font-size: 24px; font-weight: bold; color: #2c3e50; }
        .metric-label { color: #666; font-size: 14px; margin-top: 5px; }
        .success { color: #27ae60; }
        .warning { color: #f39c12; }
        .error { color: #e74c3c; }
        .test-result { margin: 10px 0; padding: 10px; border-radius: 4px; }
        .test-pass { background: #d5f4e6; border-left: 4px solid #27ae60; }
        .test-fail { background: #fadbd8; border-left: 4px solid #e74c3c; }
        .performance-chart { background: #f8f9fa; padding: 20px; border-radius: 6px; margin: 20px 0; }
        .recommendations { background: #fff3cd; border: 1px solid #ffeaa7; padding: 15px; border-radius: 6px; }
        .recommendations ul { margin: 10px 0; padding-left: 20px; }
        table { width: 100%; border-collapse: collapse; margin: 20px 0; }
        th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
        th { background-color: #f8f9fa; font-weight: bold; }
        .status-pass { color: #27ae60; font-weight: bold; }
        .status-fail { color: #e74c3c; font-weight: bold; }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>🚀 Milvus API 测试报告</h1>
            <div class="timestamp">生成时间: 2025-10-31T11-15-47-054Z</div>
        </div>
        
        <div class="section">
            <h2>📊 测试概览</h2>
            <div class="metric-grid">
                <div class="metric-card">
                    <div class="metric-value">7</div>
                    <div class="metric-label">总测试数</div>
                </div>
                <div class="metric-card">
                    <div class="metric-value success">7</div>
                    <div class="metric-label">通过测试</div>
                </div>
                <div class="metric-card">
                    <div class="metric-value error">0</div>
                    <div class="metric-label">失败测试</div>
                </div>
                <div class="metric-card">
                    <div class="metric-value">100%</div>
                    <div class="metric-label">成功率</div>
                </div>
            </div>
        </div>
        
        
        
        <div class="section">
            <h2>📋 详细测试结果</h2>
            
    <table>
        <thead>
            <tr>
                <th>测试名称</th>
                <th>状态</th>
                <th>响应时间</th>
                <th>端点</th>
                <th>错误信息</th>
            </tr>
        </thead>
        <tbody>
            
            <tr>
                <td>健康检查</td>
                <td class="status-pass">
                    ✅ 通过
                </td>
                <td>9.00ms</td>
                <td>/health</td>
                <td>N/A</td>
            </tr>
            
            <tr>
                <td>集合统计</td>
                <td class="status-pass">
                    ✅ 通过
                </td>
                <td>N/A</td>
                <td>/api/v1/milvus/stats</td>
                <td>N/A</td>
            </tr>
            
            <tr>
                <td>插入向量</td>
                <td class="status-pass">
                    ✅ 通过
                </td>
                <td>N/A</td>
                <td>/api/v1/milvus/insert</td>
                <td>N/A</td>
            </tr>
            
            <tr>
                <td>同步向量</td>
                <td class="status-pass">
                    ✅ 通过
                </td>
                <td>N/A</td>
                <td>/api/v1/milvus/sync</td>
                <td>N/A</td>
            </tr>
            
            <tr>
                <td>更新向量</td>
                <td class="status-pass">
                    ✅ 通过
                </td>
                <td>N/A</td>
                <td>/api/v1/milvus/update</td>
                <td>N/A</td>
            </tr>
            
            <tr>
                <td>搜索向量</td>
                <td class="status-pass">
                    ✅ 通过
                </td>
                <td>N/A</td>
                <td>/api/v1/milvus/search</td>
                <td>N/A</td>
            </tr>
            
            <tr>
                <td>批量删除</td>
                <td class="status-pass">
                    ✅ 通过
                </td>
                <td>N/A</td>
                <td>/api/v1/milvus/batch-delete</td>
                <td>N/A</td>
            </tr>
            
        </tbody>
    </table>
        </div>
        
        <div class="section">
            <h2>💡 优化建议</h2>
            <div class="recommendations">
                <p>🎉 系统表现优秀，无需特别优化</p>
            </div>
        </div>
    </div>
</body>
</html>